package com.lxit.dao;

import com.lxit.pojo.Examtype;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface ExamtypeMapper {
    @Delete({
        "delete from tb_examtype",
        "where id = #{id,jdbcType=INTEGER}"
    })
    int deleteByPrimaryKey(Integer id);

    @Insert({
        "insert into tb_examtype (id, exam_type)",
        "values (#{id,jdbcType=INTEGER}, #{examType,jdbcType=VARCHAR})"
    })
    int insert(Examtype record);

    int insertSelective(Examtype record);

    @Select({
        "select",
        "id, exam_type",
        "from tb_examtype",
        "where id = #{id,jdbcType=INTEGER}"
    })
    @ResultMap("BaseResultMap")
    Examtype selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Examtype record);

    @Update({
        "update tb_examtype",
        "set exam_type = #{examType,jdbcType=VARCHAR}",
        "where id = #{id,jdbcType=INTEGER}"
    })
    int updateByPrimaryKey(Examtype record);
}